<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    
    <script type="text/javascript" src="demo01.js"></script>
    <script type="text/javascript">
        // 测试
        Observer.regist('test', function(e) {
            console.log(e.type, e.args.msg);
        });
        Observer.fire('test', {msg: '传递参数'});
    </script>
</body>
</html>